<?php # Medical_Test_Answer.php

require_once 'DBObject.php';

class Medical_Test_Answer extends DBObject {
	public static $tablename = "medical_test_answers";
	
	public $id;
	public $patient_id;
	public $testname;
	public $result1;
	public $result2;
	public $record_date;
	
		
	public function get() {
		return array(
					'id' => $this->id,
					'patient_id' => $this->patient_id,
					'testname' => $this->testname,
					'result1' => $this->result1,
					'result2' => $this->result2,
					'record_date' => $this->record_date
				);
	}

	
	public function validate() {
		return parent::validateObject(self::tablename);
	}
}